	public function executeHistoric(sfWebRequest $request)
	{
		$this-><?php echo $this->getSingularName() ?> = $this->getObject();
		$this->forward404Unless($this-><?php echo $this->getSingularName() ?>);

		$table = AuditoriaEntidadTable::getInstance();

		$this->pager = $this->configuration->getPager($table->getVersionClassName('<?php echo $this->getModelClass() ?>'));

		$query = $table->getHistorialQuery('<?php echo $this->getModelClass() ?>', $this-><?php echo $this->getSingularName() ?>->id);

		$this->pager->setQuery($query);

		if ($request->hasParameter('page'))
			$this->pager->setPage($request->getParameter('page'));
		else
			$this->pager->setPage(0);

		$this->pager->init();
	}
